
#ifndef STATESHOPUPGRADES_H
#define STATESHOPUPGRADES_H

#include "StateShopCommon.h"
#include "Singleton.h"
#include "RenderableEntity.h"
#include "TextEntity.h"
#include "TimeLineEffect.h"
#include "AchievementData.h"
#include "Container.h"

class StateShopUpgrades : public StateShopCommon, public Singleton<StateShopUpgrades>
{
private:
    
    RenderableEntity* m_oUpgradeIcon[UPGRADES_COUNT];
    RenderableEntity* m_oUpgradeCoinIcon[UPGRADES_COUNT];
    TextEntity* m_oUpgradeText[UPGRADES_COUNT];
    TextEntity* m_oUpgradePrice[UPGRADES_COUNT];
    
    TextEntity* m_oUpgradeDescription;
    TextEntity* m_oSelect;

    int m_iSelected;
    RenderableEntity* m_oSelectedMark;

    RenderableEntity* m_oBuyIcon;
    TextEntity* m_oBuyText;

public:
    
	StateShopUpgrades(){}
	~StateShopUpgrades(){}
    
    void loadContent();
	void unloadContent();
    
	void activated();
	void enter();
    void update(float dt);
    void render();
    void exit();
    
    void setBackState();
    
    void buyClicked();
};

#endif
